<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input th:value="${msg}">
<h1 th:text="${msg}"></h1>

11111111111111111111
</body>
</html>